Optimal. Leaf size=55 \[ -\frac{a^2 \csc ^6(c+d x)}{6 d}-\frac{2 a^2 \csc ^5(c+d x)}{5 d}-\frac{a^2 \csc ^4(c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0660291, antiderivative size = 55, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {2833, 12, 43} \[ -\frac{a^2 \csc ^6(c+d x)}{6 d}-\frac{2 a^2 \csc ^5(c+d x)}{5 d}-\frac{a^2 \csc ^4(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2833
Rule 12
Rule 43
Rubi steps
\begin{align*} \int \cot (c+d x) \csc ^6(c+d x) (a+a \sin (c+d x))^2 \, dx &=\frac{\operatorname{Subst}\left (\int \frac{a^7 (a+x)^2}{x^7} \, dx,x,a \sin (c+d x)\right )}{a d}\\ &=\frac{a^6 \operatorname{Subst}\left (\int \frac{(a+x)^2}{x^7} \, dx,x,a \sin (c+d x)\right )}{d}\\ &=\frac{a^6 \operatorname{Subst}\left (\int \left (\frac{a^2}{x^7}+\frac{2 a}{x^6}+\frac{1}{x^5}\right ) \, dx,x,a \sin (c+d x)\right )}{d}\\ &=-\frac{a^2 \csc ^4(c+d x)}{4 d}-\frac{2 a^2 \csc ^5(c+d x)}{5 d}-\frac{a^2 \csc ^6(c+d x)}{6 d}\\ \end{align*}
Mathematica [A] time = 0.0320567, size = 55, normalized size = 1. \[ -\frac{a^2 \csc ^6(c+d x)}{6 d}-\frac{2 a^2 \csc ^5(c+d x)}{5 d}-\frac{a^2 \csc ^4(c+d x)}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 39, normalized size = 0.7 \begin{align*}{\frac{{a}^{2}}{d} \left ( -{\frac{2}{5\, \left ( \sin \left ( dx+c \right ) \right ) ^{5}}}-{\frac{1}{4\, \left ( \sin \left ( dx+c \right ) \right ) ^{4}}}-{\frac{1}{6\, \left ( \sin \left ( dx+c \right ) \right ) ^{6}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15056, size = 58, normalized size = 1.05 \begin{align*} -\frac{15 \, a^{2} \sin \left (d x + c\right )^{2} + 24 \, a^{2} \sin \left (d x + c\right ) + 10 \, a^{2}}{60 \, d \sin \left (d x + c\right )^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.63264, size = 171, normalized size = 3.11 \begin{align*} -\frac{15 \, a^{2} \cos \left (d x + c\right )^{2} - 24 \, a^{2} \sin \left (d x + c\right ) - 25 \, a^{2}}{60 \,{\left (d \cos \left (d x + c\right )^{6} - 3 \, d \cos \left (d x + c\right )^{4} + 3 \, d \cos \left (d x + c\right )^{2} - d\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2871, size = 58, normalized size = 1.05 \begin{align*} -\frac{15 \, a^{2} \sin \left (d x + c\right )^{2} + 24 \, a^{2} \sin \left (d x + c\right ) + 10 \, a^{2}}{60 \, d \sin \left (d x + c\right )^{6}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]